package com.xsh.gls.mapper;

import com.xsh.gls.pojo.Company;
import org.apache.ibatis.annotations.Param;

import java.util.List;
public interface CompanyMapper {

    List<Company> getByAll(@Param("cName") String cName, @Param("cType") Integer cType,
                           @Param("pName") String pName, @Param("cAddress") String cAddress,
                           @Param("pPhone") String pPhone);

    Company selectByNT(@Param("cName") String cName, @Param("cType") Integer cType);

    int insert(Company company);

    Company selectAll(@Param("id") Integer id);

    int deleteByPrimaryKey(@Param("id") Integer id);

    int updateByPrimaryKey(Company company);

    List<Company> select();


    List<Company> selectByType(@Param("cType")Integer cType);
}